<div class="bjui-pageHeader">
  <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('exceptionBill')}" method="post">
    <div class="bjui-searchBar">
      <div class="bjui-searchBar">
        <label>搜索：</label>
        <div role="group" class="btn-group">
          <select name="key" data-toggle="selectpicker">
            <option value="">－关键字类型－</option>
            <option value="order_sn" <?php echo I("key")=="order_sn" ? "selected='true'" : "";?>>－网店订单号－</option>
            <option value="user_name" <?php echo I("key")=="user_name" ? "selected='true'" : "";?>>－姓名－</option>
			<option value="mobile_phone" <?php echo I("key")=="mobile_phone" ? "selected='true'" : "";?>>－手机－</option>
            <option value="home_phone" <?php echo I("key")=="home_phone" ? "selected='true'" : "";?>>－电话－</option>
			<option value="address" <?php echo I("key")=="address" ? "selected='true'" : "";?>>－地址－</option>
            <option value="courie_number" <?php echo I("key")=="courie_number" ? "selected='true'" : "";?>>－快递单号－</option>
          </select>
          <input type="text" name="value" class="form-control" size="15" value="{:I('value')}">
        </div>
		&nbsp;
		<div role="group" class="btn-group">
			<select name="bank_id" data-toggle="selectpicker">
				<option value="">请选择网店</option>
				<?php foreach($bankList as $bank):?>
				<option value="{$bank.id}" <?php echo I("bank_id")==$bank['id'] ? "selected='true'" : "";?>>{$bank.name}</option>
				<?php endforeach;?>
			</select>
		</div>
		&nbsp;
		<label>下单时间：</label><input type="text" data-toggle='datepicker' value="{$start_time}" name="start_time" class="form-control" size="15"  data-rule="required" />-<input type="text" data-toggle='datepicker' value="{$end_time}" name="end_time" class="form-control" size="15"  data-rule="required"/>
		
        <button type="submit" class="btn-default" data-icon="search">查询</button>
          <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true)" data-icon="undo">清空查询</a> &nbsp; 
      </div>
    </div>
  </form>
</div>
<div class="bjui-pageContent tableContent">
<form action="{:U('index')}" class="pageForm" data-toggle="validate" method="post">
  <table class="table table-bordered table-hover table-striped table-top" data-toggle="tabledit" data-initnum="0" data-action="{:U('editExceptionBill')}" data-single-noindex="true" data-selected-multi="true">
        <thead>
        <tr data-idname="list[#index#][order_id]">
            <th title="网店订单号"><input type="text" name="list[#index#][order_sn]" readonly="ture" ></th>
            <th title="订单金额"><input type="text" name="list[#index#][order_amount]" readonly="ture" ></th>
            <th title="账单金额"><input type="text" name="list[#index#][bill_amount]"></th>
            <th title="佣金"><input type="text" name="list[#index#][bill_commission]"></th>
            <th title="实际金额"><input type="text" name="list[#index#][actual_amount]"></th>
            <th>
                操作
            </th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($list as $arr):?>
        <tr data-id="{$arr.order_id}">
            <!-- 网店订单号 -->
            <td>{$arr.order_sn}</td>
            <!-- 订单金额 -->
            <td>{$arr.order_amount}</td>
            <!-- 账单金额 -->
            <td>{$arr.bill_amount}</td>
            <!-- 佣金 -->
            <td>{$arr.bill_commission}</td>
            <!-- 实际金额 -->
            <td>{$arr.actual_amount}</td>
            <td data-noedit="true">
                <button type="button" class="btn-green" data-toggle="doedit">编辑</button>
                <a href="{:U('accountOrder?ordersn='.$arr['order_sn'])}" class="btn btn-green" data-toggle="doajax">对账</a>
				
            </td>
        </tr>
        <?php endforeach;?>
        </tbody>
    </table>
	</form>
</div>
<div class="bjui-pageFooter">
  <div class="pages"> <span>每页&nbsp;</span>
    <div class="selectPagesize">
      <select data-toggle="selectpicker" data-toggle-change="changepagesize">
        <option value="{$pageSize}">{$pageSize}</option>
        <option value="{$pageSize*3}">{$pageSize*3}</option>
        <option value="{$pageSize*6}">{$pageSize*6}</option>
        <option value="{$pageSize*12}">{$pageSize*12}</option>
        <option value="{$pageSize*15}">{$pageSize*15}</option>
      </select>
    </div>
    <span>&nbsp;条，共 {$total} 条</span> </div>
  <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}"
         data-page-current="{$pageCurrent}"></div>
</div>
